const Koa = require("koa");
const router = require("./routers");
const db = require("./db/db");
const bodyParser = require("koa-bodyparser");
const koaCors = require('koa2-cors')

const app = new Koa();

app.use(bodyParser());
app.use(koaCors({maxAge: 3600}));
app.use(router.routes());
app.use(router.allowedMethods());

app.listen(3000, () => {
  console.log("sso-service 运行在http://localhost:3000");
});
